Homology of sequences in genetics